//
//  CQCoreDataManager.h
//  HiChat
//
//  Created by wqiong on 16/1/10.
//  Copyright © 2016年 wqiong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@interface CQCoreDataManager : NSObject

+ (instancetype)shareCoreManager;

//被管理对象上下文(数据管理器)
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
//数据模型器
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
//数据连接器
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
//保存数据
- (void)saveContext;
//沙盒路径
- (NSURL *)applicationDocumentsDirectory;

@end
